#ifndef _MMA7361_H_
#define _MMA7361_H_

#include "stm32f10x.h"
#include "platform_config.h"


extern int MMA_Open(void);
extern int MMA_Close(void);
extern void MMA_Select_6G(void);
extern void MMA_Select_1G5(void);
extern int MMA_Change_Axis_Correct(char Axis, uint16_t POS_1G, uint16_t NEG_1G, int Range);
extern void MMA_Sleep(FunctionalState state);
extern int MMA_Read_Mode_Config(int avrTimes, int avgShift, int PipeEnable);
extern void MMA_Read(uint16 *x, uint16_t *y, uint16_t *z);
extern void MMA_Read_GForce(double *gfx, double *gfy, double *gfz);
extern void MMA_Read_Millivolt(double *mvx, double *mvy, double *mvz);
extern void MMA_Read_Angle(double *anglex, double *angley, double *anglez);

#endif /* ifndef _MMA7361_H_ */
